<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2018/11/29
 * Time: 4:14 PM
 */

define('IMAGE_SERSER', 'http://xlt.shared123.cn');
//define('IMAGE_SERSER', 'http://61.129.51.183:9986');

define('GOODS_IMAGE_URL', IMAGE_SERSER . '/goods_images/');
define('GOODS_ACCESSORY_URL', IMAGE_SERSER . '/accessory/');
define('BRAND_LOGO_URL', IMAGE_SERSER . '/brand_logo/');

define('GOODS_IMAGE_SAVE_PATH', ROOT_PATH . DS . 'public' . DS . 'goods_images' . DS);
define('GOODS_ACCESSORY_SAVE_PATH', ROOT_PATH . DS . 'public' . DS . 'accessory' . DS);
define('BRAND_LOGO_SAVE_PATH', ROOT_PATH . DS . 'public' . DS . 'brand_logo' . DS);



function p($data, $isDie = true) {
    header('Access-Control-Allow-Origin: *');
    header('Access-Control-Allow-Headers: *');
    echo '<pre style="color: red;">';
    print_r($data);
    echo '</pre>';
    if ($isDie) die();
}

